package com.allwees.bs.module.fms.req;

import com.allwees.bs.core.modelbase.req.Req;
import com.allwees.bs.core.modelbase.req.SmsVerifyCode;
import com.allwees.bs.core.modelbase.validate.ValidateItem;
import com.allwees.bs.module.fms.constant.EFmsSmsType;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.apache.commons.lang3.StringUtils;

/**
 * 重置提现密码
 *
 * @author yangylsky
 * @since 2019-12-12
 *
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class ResetWithdrawPasswordReq extends Req implements SmsVerifyCode {
	private String accountUuid;

	private String mobile;

	private String verifyCode;

	private String newPassword;

	@Override
	public ValidateItem[] getValidateItems() {
			return new ValidateItem[] {
				ValidateItem.of(StringUtils.isBlank(accountUuid), "账户不能为空"),
				ValidateItem.of(StringUtils.isBlank(newPassword), "新密码不能为空")
			};
	}

	@Override
	public String getSmsType() {
		return EFmsSmsType.RESET_WITHDRAW_PASSWORD.name();
	}
}
